package com.ophiux.dao;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import com.ophiux.entity.User;

public interface UserDao {
	
	
	@Insert("INSERT INTO USER(NAME, AGE) VALUES(#{name}, #{age})")
	int insert(@Param("name") String name, @Param("age") Integer age);
	
//	@Select("SELECT * FROM ophiux_users WHERE USER_NAME = #{name}")
	User findByName(@Param("name") String name);
	
	
	
}
